Skip to main content

XML

The XML template data source allows you to show data from an xml-formatted file.

note

Expected encoding is UTF8

Configuration

Setting

Description

Example

XML Link

The complete URL to the XML file including protocol

http://server/data.xml

Data Update Time

Time in seconds between updates

Restrictions (regardless of set value)
Server requests: 5 minutes
Direct requests: 2 seconds

3600

Special request headers

HTTP header key and value pairs

Key = Authorization
Value = Bearer XyzXyzXyzXyz

Use direct requests

Enable to request data direct from source instead of proxying through Smartsign Server

Server fetched data is cached by the server for 10 minutes for load balancing and security.

Direct fetched data is subject to browser security rules
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

False
Remove namespace definitions Enable to automatically remove any xml namespaces included in the data.
This may help if you have trouble getting data from your Xpaths.
True

Publishing an XML file using Smartsign

Typically the source of the xml-file comes from an external system or API and it's already available via http(s).

Sometimes this link cannot be reached directly from the Smartsign server or a screen. In such a scenario it's possible to store the file to the Smartsign Media library and re-publish it from there in order to make it accessible where needed.

You can upload the file to the media library manually or by using Smartsign Sync (min version 10.22.1).

104300868
Once the file is uploaded, view the resulting media item and go to the Advanced tab.

Enable the setting Allow anonymous access.

104300866
Once enabled, a Permalink will generate and show.

This link will not change if you update or replace the file and can be used to fetch the files content from template creator.